package ginx

import (
	"gitee.com/chewel/hermes/pkg/ginx/context"
	"github.com/gin-gonic/gin"
)

type HttpHandler func(*context.HttpContext)

func (d HttpHandler) Wrapper() gin.HandlerFunc {
	return func(ctx *gin.Context) {
		httpContext := context.NewHttpContext(ctx)
		d(httpContext)
	}
}

type HttpHandlerClaim []HttpHandler
